//
//  MyViewTableViewCell.m
//  Qyer
//
//  Created by 赵宇 on 15/9/21.
//  Copyright (c) 2015年 赵宇. All rights reserved.
//

#import "MyViewTableViewCell.h"
#import "BaseHeader.h"
@implementation MyViewTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc]initWithFrame:CGRectMake(20, (SCREEN_HEIGHT/13-SCREEN_HEIGHT*0.05)/2, SCREEN_HEIGHT*0.05, SCREEN_HEIGHT*0.05)];
        [self.contentView addSubview:self.pic];
        
        self.title = [[UILabel alloc]initWithFrame:CGRectMake(0.19*SCREEN_WIDTH, 0, SCREEN_WIDTH*0.81, SCREEN_HEIGHT/13)];
        [self.contentView addSubview:self.title];
        
        self.countLab = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH / 2, 10, SCREEN_WIDTH / 2, SCREEN_HEIGHT / 12 -  20)];
        [self.contentView addSubview:self.countLab];
        [self.countLab
         setFont:[UIFont systemFontOfSize:13]];
        
        
    }
    return self;
}
-(void)setupPic:(NSString *)pic titleText:(NSString *)str
{
    [self.pic setImage:[UIImage imageNamed:pic]];
    self.title.text = str;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
